package com.i2works.smartluolong.web.service.fooddrug.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.i2works.smartluolong.utils.basecommon.BaseCommonServiceImpl;
import com.i2works.smartluolong.utils.exception.DAOException;
import com.i2works.smartluolong.utils.exception.ServiceException;
import com.i2works.smartluolong.web.dal.fooddrug.dao.IFooddrugApplyMemberDAO;
import com.i2works.smartluolong.web.entity.fooddrug.FooddrugApplyMemberDO;
import com.i2works.smartluolong.web.entity.fooddrug.FooddrugApplyMemberQuery;
import com.i2works.smartluolong.web.service.fooddrug.IFooddrugApplyMemberService;

/**
 * @author Liu Yapeng
 * @date 2018-10-73 10:19:17
 */
@Service("fooddrugApplyMemberService")
public class FooddrugApplyMemberServiceImpl extends BaseCommonServiceImpl<FooddrugApplyMemberQuery,FooddrugApplyMemberDO>implements IFooddrugApplyMemberService {
    @Autowired
    private IFooddrugApplyMemberDAO fooddrugApplyMemberDAO;
	@Override
	public void deleteByApplyId(Integer applyId) throws ServiceException {
		try {
			fooddrugApplyMemberDAO.deleteByApplyId(applyId);
		} catch (DAOException e) {
			e.printStackTrace();
		}		
	}

}
